import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'package:state_management/provider_example/provider_counter_page.dart';

class MyProviderApp extends StatelessWidget {
  const MyProviderApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MultiProvider(
      providers: [ChangeNotifierProvider(create: (_) => Counter())],
      child:  MaterialApp(
        theme: ThemeData(
          colorScheme: ColorScheme.fromSeed(seedColor: Colors.blue),
          useMaterial3: true,
         ),
         home: const ProviderCounterPage(),
      ),
    );
  }
}
